cmake_minimum_required(VERSION 3.10)
project(BitmapProcessor)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 查找依赖
find_package(httplib REQUIRED)
find_package(nlohmann_json REQUIRED)

# 添加可执行文件
add_executable(bitmap_processor 
    src/bitmap_processor.cpp
    src/main.cpp
)

# 链接库
target_link_libraries(bitmap_processor PRIVATE
    httplib::httplib
    nlohmann_json::nlohmann_json
)

# 安装目标
install(TARGETS bitmap_processor DESTINATION bin)